package com.tmy.mapper;

import com.tmy.entity.Manager;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 操作manager相关数据接口
*/
public interface ManagerMapper {

    /**
      * 新增
    */
    int insert(Manager manager);

    /**
      * 删除
    */

    int deleteById(Integer id);

    /**
      * 修改
    */
    int updateById(Manager manager);

    /**
      * 根据ID查询
    */

    Manager selectById(Integer id);

    /**
      * 查询所有
    */
    List<Manager> selectAll(Manager manager);

    @Select("select * from manager where username = #{username}")
    Manager selectByUsername(String username);
}